package com.sise.wangzhan.myclientcofigure;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Classname MyClient
 * @Description TODO    自定义注解(需要自定义翻译器) 和 第三方注解两种方式的实现
 * @Date 2020/4/16 12:11
 * @Created by wangzhan
 */
@FeignClient(name = "lab06-eureka-feign-provider")
public interface MyClient {

    @MyUrl(url = "/hello",method = "GET")
    String myHello();

    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    String otherHello();

}
